Skip to main content

API Documentation for clear_button Plugin

options : object

Object of options available for "clear_button" plugin

Kind: global typedef
Author: Fabien Winkler

ParamTypeDefaultDescription
[title]string"Clear"Title for the clear button
[className]string"clear"Class name for the clear button
[label]string"×"[props=data] Label for the clear button
[html]functionMethod used for rendering

Example

$('select').selectize({
plugins: [
{
clear_button: {
title: 'Custom title',
className: 'custom-class',
label: 'custom label',
html: (data) => {
return (
`<a class="${data.className}" title="${data.title}">${data.label}</a>`;
}
}
}
]
});